<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="html" uri="http://struts.apache.org/tags-html-el" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Autenticazione</title>
<link href="css/images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
<!-- CSS USATI -->
<link rel="stylesheet" type="text/css" href="css/style.css">
<!-- FINE CSS -->

<script type="text/javascript">
	function validateForm(){
		var form = document.getElementById('form_login');
		
		if(form.login.value == ''){
			alert('Inserire il login prima di continuare.');
			return false;
		}
		if(form.password.value == ''){
			alert('Inserire la password prima di continuare.');
			return false;
		}
		
		return true;
	}

</script>

</head>
<body>
<jsp:include page="header.jsp"></jsp:include>
<div id="content">

	<html:errors/>	
	<div class="form_p">
		<h3 id="titolo_form">Inserire Login e Password</h3>
			<html:form action="login" styleId="form_login">
	 			<p class="label_form">Login: <html:text property="login" styleId="input_login"/></p>
	 			<p class="label_form">Password:  <html:password property="password" styleId="input_psw" redisplay="none"/> </p>
				<p><html:submit value="Login" onclick="return validateForm();"/></p>
			</html:form>
	</div>
	
	
</div>

<jsp:include page="footer.jsp"></jsp:include>
</body>
</html>